﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VietTrips.Domain.Models;

namespace VietTrips.Domain.Helpers
{
    public class RoleComparator : IEqualityComparer<Role>
    {
        public Role RoleAdmin = new Role() { RoleName = "Administrator" };
        public Role RoleUser = new Role() { RoleName = "User" };
        public Role RoleAgency = new Role() { RoleName = "Agency" };

        public bool Equals(Role x, Role y)
        {
            return x.RoleName.ToLower().Equals(y.RoleName.ToLower());
        }

        public int GetHashCode(Role obj)
        {
            return 0;
        }
    }
}
